package com.shi.shiro.service.impl;

import com.shi.shiro.domain.Role;
import com.shi.shiro.mapper.RoleMapper;
import com.shi.shiro.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;
    @Override
    public boolean saveRole(Role role) {
        return roleMapper.insertRole(role);
    }

    @Override
    public boolean batchSaveRoles(List<Role> roleList) {
        return roleMapper.batchInsertRoles(roleList);
    }
}
